Skip to main content
Version: current

fantasy


routing/fantasy

Type: Directory

Fantasy menu is a fancy way to generate large amount of routes for testing purposes. Main benefits of this approach compared to a script are the generation speed and simplicity. It is easy to remove all fantasy generated routes just by disabling the fantasy rule.

Fantasy uses a random generator from hashed route sequence number, seed and other parameters.

FlagNameDescription
Xdisableddisabled
Iinvalidinvalid
ArgumentTypeDescription
namestring
dst-addressaddress (flags=46it/)Prefix from which route will be generated.
prefix-lengthrange_argrefix length for generated route (can be specified as integer range). For example dst-address=192.168.0.0/16 and prefix-length=24 will generate /24 routes from 192.168.0.0/16 subnet.
gatewayaddress (flags=46iv/)
scoperange_argScope to be set; can be set as range.
target-scoperange_argTarget scope to be set; can be set as range.
instance-idrange_arg
dealer-idrange_arg
seedstringRandom generator seed.
countnum
offsetnumRoute sequence number offset.
priv-offsrange_arg
priv-sizerange_arg
use-holdbool